package com.lion.ball.modules.orderfood.web.model.params.order;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 动态分组与食品关联 数据排序请求参数
 * Explain:
 * 所有字段取值规则：-1 降序，0 不排序，1 升序
 */
@Schema(description = "动态分组与食品关联 排序参数")
public class OfdDynamicGroupFoodOrderParam {
    @Schema(description = "主键", example = "1")
    private int id;
    @Schema(description = "分组编码", example = "1")
    private int groupCode;
    @Schema(description = "食品编码", example = "1")
    private int foodCode;
    @Schema(description = "创建时间", example = "1")
    private int createTime;
    @Schema(description = "更新时间", example = "1")
    private int updateTime;
    @Schema(description = "是否删除", example = "1")
    private int isDeleted;

    // 无参构造方法
    public OfdDynamicGroupFoodOrderParam() {
    }

    // 全参数构造方法
    public OfdDynamicGroupFoodOrderParam(int id, int groupCode, int foodCode, int createTime, int updateTime, int isDeleted) {
        this.id = id;
        this.groupCode = groupCode;
        this.foodCode = foodCode;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    // 全参数create生成器
    public static OfdDynamicGroupFoodOrderParam create(int id, int groupCode, int foodCode, int createTime, int updateTime, int isDeleted) {
        return new OfdDynamicGroupFoodOrderParam(id, groupCode, foodCode, createTime, updateTime, isDeleted);
    }

    // 全参数of生成器
    public static OfdDynamicGroupFoodOrderParam of(int id, int groupCode, int foodCode, int createTime, int updateTime, int isDeleted) {
        return new OfdDynamicGroupFoodOrderParam(id, groupCode, foodCode, createTime, updateTime, isDeleted);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public OfdDynamicGroupFoodOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getGroupCode() {
        return groupCode;
    }

    public OfdDynamicGroupFoodOrderParam setGroupCode(int groupCode) {
        this.groupCode = groupCode;
        return this;
    }

    public int getFoodCode() {
        return foodCode;
    }

    public OfdDynamicGroupFoodOrderParam setFoodCode(int foodCode) {
        this.foodCode = foodCode;
        return this;
    }

    public int getCreateTime() {
        return createTime;
    }

    public OfdDynamicGroupFoodOrderParam setCreateTime(int createTime) {
        this.createTime = createTime;
        return this;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public OfdDynamicGroupFoodOrderParam setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdDynamicGroupFoodOrderParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    // endregion Getter和Setter方法
}
